package com.three.server.mapper;

import com.smartcar.common.domain.Order;
import com.smartcar.common.domain.request.OrderRequest;
import com.smartcar.common.domain.response.*;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;
import java.util.List;

/**
 * @ProjectName : driverMe_dev
 * @PackageName : com.three.server.mapper
 * @ClassName : OrderMapper
 * @Author : ZhouTeng
 * @CreateTime : 2023/10/15 16:22
 */

@Mapper
public interface OrderMapper {

    int insertOrder(OrderRequest orderRequest);

    int updateOrderByDriver(OrderRequest orderRequest);

    ArrayList<OrderRequest> queryOrderByOrderState(@Param("orderState") Integer orderState);

    List<OrderRequest> selectOrder(OrderRequest orderRequest);

    List<OrderRequest> orderFindByPhone(String personPhone);

    List<OrderRequest> selectPcOrder();

    int updatePc(OrderRequest orderRequest);

    OrderRequest echoOrder(@Param("id") Long id);
}

